exports.getDateTime = () => {
    var now = new Date();
    // 使用Date对象的方法来获取年、月、日、时、分、秒
    var year = now.getFullYear();
    var month = String(now.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的，所以+1，并确保是两位数
    var day = String(now.getDate()).padStart(2, '0'); // 确保日期是两位数
    var hours = String(now.getHours()).padStart(2, '0'); // 确保小时是两位数，24小时制
    var minutes = String(now.getMinutes()).padStart(2, '0'); // 确保分钟是两位数
    var seconds = String(now.getSeconds()).padStart(2, '0'); // 确保秒是两位数
    // 按照“年月日 时分秒”的顺序拼接成字符串
    var currentDateTime = year + "/" + month + "/" + day + " " + hours + ":" + minutes + ":" + seconds;
    return currentDateTime;
}
exports.zdProcess = ["综调发起", "装维站审批", "综调审批", "通知新装维", "装维已确认"];
// exports.bzProcess = { 0:"班长发起", 1:"主管审批", 2:"装维站审批", 3:"综调审批", 4:"通知新旧装维", 5:"装维已确认" };
exports.bzProcess = ["班长发起", "主管审批", "装维站审批", "综调审批", "通知新旧装维", "装维已确认"];
exports.simplePosition = (rs) => {
    if (rs.position == '全职装维') {
        rs.position = '装维'
    } else if (rs.position == '移动装维站') {
        rs.position = '装维站'
    } else if (rs.position == '装维主管') {
        rs.position = '主管'
    }
    return rs;
}
